package com.wowangz.cms.syscore.api;

import java.util.HashMap;

import com.wowangz.cms.syscore.api.UserContext.MessageType;

/**
 * 
 * @author leiyang3
 *
 */
public class ServiceResponse {
	
	protected long messagetype = MessageType.NONE;
	protected String message = "";
	protected HashMap<String, Object> map = new HashMap<String, Object>();
	
	public long getMessagetype() {
		return messagetype;
	}
	public void setMessagetype(long messagetype) {
		this.messagetype = messagetype;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public HashMap<String, Object> getMap() {
		return map;
	}
	public void setMap(HashMap<String, Object> map) {
		this.map = map;
	}
	public void addData(String key, Object value) {
		map.put(key, value);
	}
	public Object getData(String key) {
		return map.get(key);
	}
}
